import Vue from 'vue'
import Router from 'vue-router'
import Center from '@/components/Center'
import SelectNumber from '@/components/SelectNumber'
import Goods from '@/components/Goods'
import ShopCart from '@/components/ShopCart'
import Search from '@/components/Search'
import OrderBefore from '@/components/OrderBefore'
import Order from '@/components/Order'
import PayPage from '@/components/PayPage'
import PayStatus from '@/components/PayStatus'
import PaySuccess from '@/components/PaySuccess'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Center',
      component: Center
    },
    {
      path: '/SelectNumber',
      name: 'SelectNumber',
      component: SelectNumber
    },
    {
      path: '/Goods',
      name: 'Goods',
      component: Goods
    },
    {
      path: '/ShopCart',
      name: 'ShopCart',
      component: ShopCart
    },
    {
      path: '/Search',
      name: 'Search',
      component: Search
    },
    {
      path: '/OrderBefore',
      name: 'OrderBefore',
      component: OrderBefore
    },
    {
      path: '/Order',
      name: 'Order',
      component: Order
    },
    {
      path: '/PayPage',
      name: 'PayPage',
      component: PayPage
    },
    {
      path: '/PayStatus',
      name: 'PayStatus',
      component: PayStatus
    },
    {
      path: '/PaySuccess',
      name: 'PaySuccess',
      component: PaySuccess
    }
  ]
})
